import axios from '@/plugins/axios'

export function getAllLinks (params) {
  return axios.get('/api/links', params)
}

export function getLinkDetail (id, params) {
  return axios.get('/api/links/' + id, params)
}

export function createLink (params) {
  return axios.post('/api/links', params)
}

export function updateLink (id, params) {
  return axios.put('/api/links/' + id, params)
}

export function deleteLink (id, params) {
  return axios.delete('/api/links/' + id, params)
}
